/**
 * Copyright(c),2018-2018
 * FileName:  RoleMapper
 * Author:    旭哥
 * Date:      2018/10/21 14:59
 * Description:
 * History:
 * <author>  <time>  <version> <desc>
 ***/
package com.supply.supplymanage.dao;

import com.supply.supplymanage.entity.Role;
import com.supply.supplymanage.entity.Role_permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
@Mapper
public interface RoleMapper {

     int addRole(Role role);

     List<Map> queryRole();

     List<Map> addRolePre(Role_permission rp);

     //角色授权
     List<Map> queryPer();
     //查看已授权的角色
     List<Map> querybyQuan();

     //给角色授予权限
     List<Map> addRolePer(@Param("roleid") Integer roleid, @Param("perid") Integer perid);

     //删除该角色的权限
     List<Map> delRolePer(Integer roleid,Integer perid);

}
